package com.wenson.creational.factory;

import java.util.Random;

/**
 * @author: luowangcheng
 * @data：2024/6/10 18:04
 * @description:
 */
public class AirplaneFactory implements Factory{
    @Override
    public Enemy create(int screenWidth) {
        Random random = new Random();
        return new Airplane(random.nextInt(screenWidth), 0);
    }
}
